package com.cherish.demo;

import com.alibaba.fastjson.parser.ParserConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @ClassName
 * @Author cherish
 * @Date 2019/11/28
 * @Description
 *
 * @MapperScan:启动类不加@MapperScan，则每个mapper都需要家@Mapper
 */
@MapperScans({
        @MapperScan("com.cherish.demo.db.mapper")
})
@SpringBootApplication
public class DatabaseApplication {

    public static void main(String[] args) {
        ParserConfig.getGlobalInstance().addAccept("com.cherish.demo");
        SpringApplication.run(DatabaseApplication.class, args);
    }

}
